-- GENERATED SPELL FOR [Runic Battle Golem] --


function spell0_26284(pUnit, Event) --@Battle Runes,Self--
pUnit:FullCastSpellOnTarget(52630,pUnit)
pUnit:RegisterEvent('Sorts_26284', 6291, 1)
end

function Sorts_26284(pUnit, Event)
local choix_sorts_26284 = math.random(0, 0)
if choix_sorts_26284 == 0 then
pUnit:RegisterEvent('spell0_26284', 1, 1)
end
end

function mob26284_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26284', math.random(1500, 3000), 1)
end

function mob26284_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26284_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26284_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26284, 1, 'mob26284_Action')
RegisterUnitEvent(26284, 2, 'mob26284_Leave')
RegisterUnitEvent(26284, 3, 'mob26284_Kill')
RegisterUnitEvent(26284, 4, 'mob26284_Die')
